package car;

public class Jeep extends Car{
	private static final int DECREESING_GEAR = 1;
	private static final int SLOWING_DOWN = 10;
	private boolean isCabriolet;
	
	void switch4x4(){
		System.out.println("The jeep switched on 4x4!");
	}
	
	void driveOffRoad(){
		System.out.println("You slowed down by 10 km/h and by 1 gear");
		setCurrentGear(getCurrentGear()-DECREESING_GEAR);
		setCurrentSpeed(getCurrentSpeed()-SLOWING_DOWN);
		System.out.println("Current gear: " + getCurrentGear());
		System.out.println("Current speed: " + getCurrentSpeed());
	}
	
	Jeep(){
		
	}

	public boolean isCabriolet() {
		return isCabriolet;
	}

	public void setCabriolet(boolean isCabriolet) {
		this.isCabriolet = isCabriolet;
	}
	
}
